package jp.ddo.trismegistos.action.impl.entry;

import jp.ddo.trismegistos.action.impl.AbstractAction;
import jp.ddo.trismegistos.annotation.LoginCheck;
import jp.ddo.trismegistos.bean.Entry;
import jp.ddo.trismegistos.exception.RsException;
import jp.ddo.trismegistos.service.EntryService;

/**
 * @author Nagai Satoshi
 */
@LoginCheck
public class DetailAction extends AbstractAction {

	private EntryService entryService;

	@Override
	public String execute() throws RsException {
		final String entryId = getParameter("entryId");
		// final Entry entry = entryService.findEntryByEntryId(entryId);
		Entry entry = new Entry();
		entry.setEntryId(1);
		entry.setTitle("hoge");
		setRequest("entry", entry);
		return "entry/detail.jsp";
	}

	public void setEntryService(final EntryService entryService) {
		this.entryService = entryService;
	}
}
